<html>

    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>


    <head>
        <title>Red Social</title>
        <link href="./css/estilos.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <f:view>
            <jsp:include page="cabecera.jsp"/>
            <div id="contenedorCentral">
                <div id="login">
                    <h:form  id="formLogin">
                        <p><h:inputText id="email" value="#{loginBean.email}"/></p>
                        <p>Contrase&ntilde;a <h:inputSecret id="password" value="#{loginBean.password}"/></p>
                        <p><h:commandButton value="Enviar" action="#{loginBean.doLogin}"></h:commandButton></p>
                        <h:outputText id="message" value="#{loginBean.error}"/>
                    </h:form>

                </div>
                <div id="registro">
                    <a href="faces/plantilla.jsp">Plantilla</a>
                </div>
            </div>
            <jsp:include page="pie.jsp"/>
        </f:view>
    </body>
</html>

